﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Genetic;

namespace GaTest
{
    class Program
    {
        static void Main(string[] args)
        {
            
            
            TetrisFitnessFunction fitnessFunction = new TetrisFitnessFunction();
		
			Population population = new Population( 100,
				 new TetrisChromosome(5),
				fitnessFunction,
				new RouletteWheelSelection( )
				);
			
			

			
			// loop
			while (true)
			{
				// run one epoch of genetic algorithm
				population.RunEpoch( );

				// display current path
				ushort[] bestValue = ((PermutationChromosome) population.BestChromosome).Value;
                Console.WriteLine(( population.BestChromosome ).ToString( ));
			}

			// enable settings controls
		
		}
            
        
    }
}
